home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Excel / Sheet.jar / sheet / Cell$1.class (.txt) < prev    next >
Encoding:
Java Class File  |  2001-09-03  |  1.7 KB  |  48 lines

  1. package sheet;
  2.  
  3. import javax.microedition.lcdui.Command;
  4. import javax.microedition.lcdui.CommandListener;
  5. import javax.microedition.lcdui.Display;
  6. import javax.microedition.lcdui.Displayable;
  7. import javax.microedition.lcdui.TextBox;
  8.  
  9. class Cell$1 implements CommandListener {
  10.    private final Command val$helpCommand;
  11.    private final Display val$disp;
  12.    private final Command val$okCommand;
  13.    private final Backable val$back;
  14.    private final Cell this$0;
  15.  
  16.    Cell$1(Cell var1, Command var2, Display var3, Command var4, Backable var5) {
  17.       this.this$0 = var1;
  18.       this.val$helpCommand = var2;
  19.       this.val$disp = var3;
  20.       this.val$okCommand = var4;
  21.       this.val$back = var5;
  22.    }
  23.  
  24.    public void commandAction(Command var1, Displayable var2) {
  25.       TextBox var3 = (TextBox)var2;
  26.       if (var1 == this.val$helpCommand) {
  27.          Cell.access$500().showHelp(var3, this.val$disp);
  28.       } else {
  29.          if (var1 == this.val$okCommand) {
  30.             if (Cell.access$600(this.this$0) != var3.getString()) {
  31.                Cell.access$602(this.this$0, var3.getString());
  32.                if (Cell.access$600(this.this$0).length() == 0) {
  33.                   Cell.access$602(this.this$0, (String)null);
  34.                }
  35.  
  36.                Cell.access$000().notifyChanged();
  37.             }
  38.  
  39.             Cell.access$102(this.this$0, (String)null);
  40.             Cell.access$000().calculate();
  41.          }
  42.  
  43.          this.val$back.show();
  44.       }
  45.  
  46.    }
  47. }
  48.